

*******************************************************************************************************************************
*Replication code for "Trump Tweets and Democratic Attitudes: Evidence from a Survey Experiment" (descriptive statistics usign WVS)*
*******************************************************************************************************************************
*******************************************************************************************************************************

*** AUHTORS CONTACT: **********************************
* Shaun Bowler
* University of California, Riverside
* Department of Political Science
* shaun.bowler@ucr.edu

* Miguel Carreras
* University of California, Riverside
* Department of Political Science
* miguel.carreras@ucr.edu

* Jennifer Merolla
* University of California, Riverside
* Department of Political Science
* merolla@ucr.edu


******************************************************

***This analysis is based on a dataset gathered by the authors from different US waves of the World Values Survey. The original datasets can be downloaded here: https://www.worldvaluessurvey.org/ ***

***Replication Figure 1***

gen dem_system_dummy = 0
replace dem_system_dummy =1 if dem_system ==3
replace dem_system_dummy =1 if dem_system ==4

sum dem_system_dummy if year==1995 & democrat==1
sum dem_system_dummy if year==1995 & republican==1

sum dem_system_dummy if year==1999 & democrat==1
sum dem_system_dummy if year==1999 & republican==1

sum dem_system_dummy if year==2006 & democrat==1
sum dem_system_dummy if year==2006 & republican==1

sum dem_system_dummy if year==2011 & democrat==1
sum dem_system_dummy if year==2011 & republican==1

sum dem_system_dummy if year==2017 & democrat==1
sum dem_system_dummy if year==2017 & republican==1

gen strong_leader_dummy = 0
replace strong_leader_dummy =1 if strong_leader ==3
replace strong_leader_dummy =1 if strong_leader ==4

sum strong_leader_dummy if year==1995 & democrat==1
sum strong_leader_dummy if year==1995 & republican==1

sum strong_leader_dummy if year==1999 & democrat==1
sum strong_leader_dummy if year==1999 & republican==1

sum strong_leader_dummy if year==2006 & democrat==1
sum strong_leader_dummy if year==2006 & republican==1

sum strong_leader_dummy if year==2011 & democrat==1
sum strong_leader_dummy if year==2011 & republican==1

sum strong_leader_dummy if year==2017 & democrat==1
sum strong_leader_dummy if year==2017 & republican==1


***Replication Figure A2 (appendix)***

gen trust_press_dummy = 0
replace trust_press_dummy =1 if trust_press ==3
replace trust_press_dummy =1 if trust_press ==4

sum trust_press_dummy if year==1995 & democrat==1
sum trust_press_dummy if year==1995 & republican==1

sum trust_press_dummy if year==1999 & democrat==1
sum trust_press_dummy if year==1999 & republican==1

sum trust_press_dummy if year==2006 & democrat==1
sum trust_press_dummy if year==2006 & republican==1

sum trust_press_dummy if year==2011 & democrat==1
sum trust_press_dummy if year==2011 & republican==1

sum trust_press_dummy if year==2017 & democrat==1
sum trust_press_dummy if year==2017 & republican==1